package com.example.flow.dao.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;

/**
 * 流程工单
 *
 * @author tangaq
 * 2023/6/13
 */
@Table(name = "flow_order_his")
@Data
@EqualsAndHashCode(callSuper = true)
public class FlowOrderHis extends BaseEntity {
    private static final long serialVersionUID = -4940429784712409131L;
    private String hisOrderId;
    /**
     * 流程工单id
     */
    private String orderId;

    private String processId;

    /**
     * 流程实例状态FlowConstant（0：结束；1：活动）
     */
    private Integer orderState;

    /**
     * 流程实例结束时间
     */
    private String finishTime;

    /**
     * 流程参数
     */
    private String args;

    public FlowOrderHis() {

    }

    public FlowOrderHis(FlowOrder order) {
        this.orderId = order.getOrderId();
        this.processId = order.getProcessId();
        this.args = order.getArgs();
    }
}
